package com.zut.fitness.mapper;


import com.zut.fitness.pojo.FroUser;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 前台用户Mapper接口
 * 
 * @author admin
 * @date 2025-01-02
 */
@Mapper
public interface FroUserMapper 
{
    /**
     * 查询前台用户
     * 
     * @param id 前台用户主键
     * @return 前台用户
     */
    public FroUser selectFroUserById(Long id);

    @Select("select * from user where username=#{username}")
    FroUser findByUserName(String username);


    int insertFroUser(FroUser user);
}
